import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useLocaleStore = defineStore('locale', () => {
  const locale = ref<string>(localStorage.getItem('locale') || 'zh')
  function changeLocaleStore(value: string) {
    locale.value = value

  }
  return { locale, changeLocaleStore }
})
